$(document).ready(function()
{
	var title=$('#SearchTitle');
	var button=$('#SearchButton');
	
	button.click(function()
	{
		if(title.val().replace(/\s/g,'')=='')
		{
			title.focus();
		}
		else
		{
			window.location='/exec.php?action=ancillary_supply_list&type=search&title='+encodeURI(title.val());
		}
		return false;
	});		
});